export interface ProfileState {
    //经纬度
    geohash : string |(string | null)[],//地址geohash值
    pois: string,
    //购物车
    // sig: null,//购物车sig
    // cartId: null, //购物车id
    cartList: IcartInfo[], // 加入购物车的商品列表
    // shopDetail: null, //商家详情信息
    //用户信息
    login: boolean,//是否登录
    imgPath:string,//头像地址
    userInfo: IuserInfo | null, //用户信息
    //店铺信息
    // restaurant_id: null,//商铺id
    // //订单
    // invoice: boolean,//开发票
    // inputText: string,//输入备注内容
    // remarkText: null,//可选备注内容
    // newAddress: [], //确认订单页新的地址
    // orderParam: null,//订单的参数
    // orderDetail: null, //订单详情
    // orderMessage: null, //订单返回的信息
    // needValidation: null,//确认订单时是否需要验证
    // //地址
    // question: null,//问题详情
    // cartPrice: null, //会员卡价格
    // addAddress:string,		//新增地址
    // addressIndex: null,//选择地址的索引值
    // removeAddress:[],//移除地址
    // searchAddress: null,//搜索并选择的地址
    // choosedAddress: null,//选择地址
}

export interface RootState {
    version:string;
}

export interface IuserInfo {
    avatar: string,
    balance: number,
    brand_member_new: number,
    city: string,
    column_desc: {
        game_desc: string,
        game_image_hash: string,
        game_is_show: number,
        game_link: string,
        gift_mall_desc: string,
    },
    current_address_id: number,
    current_invoice_id: number,
    delivery_card_expire_days: number,
    email: string,
    gift_amount: number,
    id: number,
    is_active: number,
    is_email_valid: false
    is_mobile_valid: true
    mobile: string,
    point: number,
    registe_time: string,
    user_id: number,
    username: string,
    __v: number,
}

export interface IcartInfo {
    attrs:[],
    extra:{},
    id: string,
    name: string,
    packing_fee: string,
    price: string,
    quantity: string,
    sku_id: string,
    specs: string,
    stock: string,
}
